<?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
<?php foreach( $xmlObjs as $xmlObj ): ?>
	<?php if( $xmlObj->getName() && $xmlObj->getText() && $xmlObj->getPicture() ): ?>
		<page>
			<name><?php echo $xmlObj->getName() ?></name>
			<text><?php echo ($xmlObj->getRawText()) ?></text>
			<picture><?php echo 'http://www.ttlazdynai.lt/web/images/gallery/tiny/' . $xmlObj->getPicture() ?></picture>
		</page>
	<?php endif; ?>
<?php endforeach; ?>